package net.myjung.hibernate;

import net.myjung.model.annotation.MdlAttribute;
import net.myjung.model.annotation.MdlClass;
import net.myjung.model.annotation.MdlElement;

@MdlClass(name = "Collection")
@SuppressWarnings("serial")
public class HbnCollection extends HbnObject {
	@MdlAttribute(type = "string")
	private String table;
	@MdlAttribute(type = "string")
	private String cascade;
	@MdlElement(type = "net.myjung.hibernate.Key")
	private HbnKey key;

	public String getTable() {
		return table;
	}
	public void setTable(String table) {
		this.table = table;
	}
	public String getCascade() {
		return cascade;
	}
	public void setCascade(String cascade) {
		this.cascade = cascade;
	}
	public HbnKey getKey() {
		return key;
	}
	public void setKey(HbnKey key) {
		this.key = key;
	}
}